<!-- author: marc goetz
     pagetemplate for @@wowcharacter view
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="here/main_template/macros/master"
      i18n:domain="collective.wowcharacter">

  <head profile="http://gmpg.org/xfn/11">
    <metal:block metal:fill-slot="style_slot">
      <link rel="shortcut icon" href="image/favicon.ico" />
      <!-- set custom stylesheet -->
      <link rel="stylesheet" href="++resource++collective.wowcharacter.stylesheets/wowcharacter.css" type="text/css" media="screen" />
    </metal:block>
    <!-- set wowhead tooltip javascript -->
    <metal:script metal:fill-slot="javascript_head_slot">
    <script type="text/javascript" src="http://static.wowhead.com/widgets/power.js"></script>
    </metal:script>
  </head>

  <body>
    <metal:main fill-slot="main">
      <!-- css class dependent on character-fraction -->
      <div id="content"
           tal:define="character view/char_data"
           tal:attributes="class view/css_class" >
        <h1 tal:content="context/name" />
        <p tal:content="context/description" />

        <h1 i18n:translate="generalinfo">1. General Info</h1>

        <p i18n:translate="name">Name:
                 <span i18n:name="prefix" tal:replace="character/prefix" />
                 <span i18n:name="name" tal:replace="character/name" />
                 <span i18n:name="suffix" tal:replace="character/suffix" />
        </p>
        <p i18n:translate="level">Level: <span i18n:name="level" tal:replace="character/level" /> </p>
        <p i18n:translate="race">Race: <span i18n:name="race" tal:replace="character/race" /> </p>
        <p i18n:translate="sex">Sex: <span i18n:name="sex" tal:replace="character/sex" /> </p>
        <p i18n:translate="class">Class: <span i18n:name="class" tal:replace="character/class" /> </p>
        <p i18n:translate="guild">Guild: <span i18n:name="guild" tal:replace="character/guild" /> </p>
        <p i18n:translate="achievements">Achievements: <span i18n:name="achievements" tal:replace="character/points" /> </p>

        <h1 i18n:translate="pvp">2. PvP</h1>

        <p i18n:translate="battlegroup">Battlegroup: <span i18n:name="battlegroup" tal:replace="character/battlegroup" /> </p>
        <p i18n:translate="honorarykills">Honorary Kills: <span i18n:name="honorarykills" tal:replace="character/lifetimehonorablekills" /> </p>

        <h2 i18n:translate="arenateams">2.1 Arena Teams</h2>

        <span tal:repeat="arena_teams view/char_arena_teams">
          <p> <span tal:replace="arena_teams/arena_team" /> </p>
        </span>

        <h1 i18n:translate="talentspecs">3. Talent Specs</h1>

        <p> <img tal:attributes="src character/spec1icon">
            <span tal:replace="character/spec1" />
        </p>
        <p> <img tal:attributes="src character/spec2icon">
            <span tal:replace="character/spec2" />
        </p>

        <h2 i18n:translate="glyphs">3.1 Active Glyphs</h2>

        <div class="glyphs">
          <span tal:repeat="glyphs view/char_glyphs">
            <p> <span tal:replace="structure glyphs/glyph" /> </p>
          </span>
        </div>

        <h1 i18n:translate="professions">4. Professions</h1>

        <h2 i18n:translate="primary">4.1 Primary</h2>

        <p> <span tal:replace="character/profession1" /> </p>
        <p> <span tal:replace="character/profession2" /> </p>

        <h2 i18n:translate="secondary">4.2 Secondary</h2>

        <span tal:repeat="secondary view/char_secondary_professions">
          <p> <span tal:replace="secondary/secondary_profession" /> </p>
        </span>


        <h1 i18n:translate="equip">5. Equip</h1>

        <!-- loop for each item -->
        <span class="icon_wrapper" tal:repeat="equip view/char_equip">
          <a tal:attributes="href equip/item_url;
                             rel equip/ench_gems">
            <img class="icon" tal:attributes="src equip/icon_url" />
          </a>
          <tal:cond define="num repeat/equip/number"
                    condition="python:int(num) % 4 == 0">
            <br/>
          </tal:cond>
        </span>

        <h1 i18n:translate="activity">6. Recent Activity
          <span tal:define="activity view/char_activity_feed">
            <a tal:attributes="href activity/url">
              <img class="rss" tal:attributes="src activity/image">
            </a>
          </span>
        </h1>

        <div class="activity">
          <span tal:repeat="activity view/char_activity">
            <p> <span tal:replace="activity/activity" /> </p>
          </span>
        </div>

        <h1 i18n:translate="comments">7. Comments</h1>

        <p tal:content=view/wow />

      </div>
    </metal:main>
  </body>

</html>

<!-- vim: set ft=html ts=2 sw=2 expandtab : -->
